package 乙级;

import java.math.BigInteger;
import java.util.Scanner;

/**
 * @author mubei
 * @date 2021/8/20
 * @description
 */
public class 个位数统计 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String src = scanner.nextLine();
        int[] res = new int[10];
        char[] chars = src.toCharArray();

        for(char c : chars){
            res[c-'0'] ++;
        }

        for (int i = 0; i < 10; i++) {
            if(res[i] != 0){
                System.out.println(i+":"+res[i]);
            }
        }
    }
}
